package com.hnu.store.dto;

import lombok.Data;

/**
 * 与前端交互的用户
 */
@Data
public class UserDTO {

  //  用户id
  private Integer id;
  //  用户名
  private String username;
  //  手机号码
  private String phone;
  //  邮箱
  private String email;
  //  身份证号码
  private String citizenId;
  //  钱包地址
  private String pocket;
  //  头像
  private String avatar;
  //  0普通用户，1管理员
  private Integer isAdmin;
  //  0未实名，1已实名
  private Integer isCertified;

  //  真实姓名
  private String realName;
  //  标签1
  private String tag1;
  //  标签2
  private String tag2;
  //  标签3
  private String tag3;

  //  身份证正面
  private String front;
  //  身份证背面
  private String negative;

  //  构造函数
  public UserDTO() {
  }

  public UserDTO(Integer id, String username, String phone, String email, String citizenId,
      String pocket, String avatar, Integer isAdmin, Integer isCertified, String realName,
      String tag1, String tag2, String tag3, String front, String negative) {
    this.id = id;
    this.username = username;
    this.phone = phone;
    this.email = email;
    this.citizenId = citizenId;
    this.pocket = pocket;
    this.avatar = avatar;
    this.isAdmin = isAdmin;
    this.isCertified = isCertified;
    this.realName = realName;
    this.tag1 = tag1;
    this.tag2 = tag2;
    this.tag3 = tag3;
    this.front = front;
    this.negative = negative;
  }
}
